package cn.wolfcode.qo;

import cn.wolfcode.util.UserContext;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Setter
@Getter
// 分页过滤查询的参数
public class NoticeQueryObject extends QueryObject{

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;
    private int noticeLevel = -1;
    private int haveRead = -1;
    // 当前用户id
    private Long userId = UserContext.getEmployee().getId();

}
